<!doctype html>
<html>
<head>
  <title>C211 Contestron</title>
  <link rel="stylesheet" type="text/css" href="https://cgi.cs.indiana.edu/~c211/spring11/contestron-dev/static/master.css" /> 
  <link rel="stylesheet" type="text/css" href="https://cgi.cs.indiana.edu/~c211/spring11/contestron-dev/static/contestron.css" />   
</head>
<body>

  {% block header %}
  <div id="title">
    <table>
      <tr>
	<td width=20% align=left>C211/A591</td>
	<td width=60% align=center>You are {{ current_user }}</td>
	<td width=60% align=right> 
	  <!-- Credit for script: http://www.javascriptkit.com -->
	  <script type="text/javascript">
	    // Borrowed from: http://www.javascriptkit.com
	    // and modified by Dustin Dannenhauer
	    
	    //PHP method of getting server date
	    var currenttime = '<? print date("F d, Y H:i:s", time())?>' //PHP method of getting server date
	    
	    var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
	    var serverdate=new Date(currenttime)
	    
	    function padlength(what){
	    var output=(what.toString().length==1)? "0"+what : what
	    return output
	    }
	    
	    function displaytime(){
	    serverdate.setSeconds(serverdate.getSeconds()+1)
	    var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())
	    document.getElementById("servertime").innerHTML=timestring
	    }
	    
	    window.onload=function(){
	    setInterval("displaytime()", 1000)
	    }
	  </script>
	  Server Time:</b> <span id="servertime"></span> 
      </td>
      <!-- End server time script -->
    </tr>
  </table>
</div>
{% endblock header %}
{% block navbar %}
<div id="header">
    <ul>
        <!-- li><a href="../index.html">C211 Home</a></li -->
        <li><a href="{% url contests.views.base %}">Contestron Home</a></li>
	<!-- li><a href="{% url django.contrib.auth.views.login %}">Login</a></li -->
	<!-- li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li -->
	<li><a href="{% url contests.views.problems %}">Problems</a></li>
	<li><a href="{% url admin:index %}">Admin</a></li>
	<li><a href="{% url contests.views.allResults %}">All Results</a></li>	
    </ul>        
</div>
{% endblock navbar %}

{% block content %}
<h3>Nothing here yet...</h3>
{% endblock content %}

{% block footer %}
{% endblock footer %}

</body>
</html>

<!-- 
  <h2>Welcome to contestron!</h2>

  <h4>Information about yourself:</h4>
  <ul>
    <li>You are currently logged in as: {{ current_user }}</li>
  </ul>
  

  <h4>Navigation:</h4>

  <ul>
    <li><a href="{% url contests.views.base %}">Home (aka this page)</a></li>
    <!-- li><a href="{% url django.contrib.auth.views.login %}">Login</a></li -->
    <!-- li><a href="{% url django.contrib.auth.views.logout %}">Logout</a></li -->
    <li><a href="{% url contests.views.problems %}">Problems</a></li>
    <li><a href="{% url admin:index %}">Admin</a></li>
  </ul>


  
-->
